/*package com.wooophone.mpyeah.test;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.wooophone.mpyeah.biz.BrandCategoryBiz;
import com.wooophone.mpyeah.biz.OnLineStoreBiz;
import com.wooophone.mpyeah.biz.exception.CannotDeleteException;
import com.wooophone.mpyeah.entity.OnLineStore;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

@ContextConfiguration(locations = { "/spring/applicationContext*.xml" })
public class OnLineStoreBizTestCase extends AbstractJUnit4SpringContextTests {
	
	@Autowired
	OnLineStoreBiz onLineStoreBiz;
	
	@Test public void test() throws CannotDeleteException{
		System.out.println(onLineStoreBiz);
		
		OnLineStore onLineStore=new OnLineStore();
		onLineStore.setName("阿卡家旗舰店");
		onLineStore.setDescription("阿卡家旗舰店——详细描述");
		onLineStore.setMore("更多描述信息");
		onLineStore.setCreator("MingliC");
		onLineStore.setEditor("MingliC");
		onLineStore.setPcUrl("http://www.baidu.com");
		onLineStore.setPadUrl("http://www.baidu.com");
		onLineStore.setPhoneUrl("http://www.baidu.com");
		onLineStore.setStatus(1);
		//onLineStore.setGrade("{'总体得份':5,'好评率':5}");
		onLineStore.setTurnover(10000);
		onLineStore.setIcon("http://hiphotos.baidu.com/%C8%CB%C9%FA%CE%DE%BA%DE/pic/item/0bee680e11567ec5aa64577c.jpg");
		
		onLineStoreBiz.save(onLineStore);
		
		System.out.println("保存成功："+onLineStore.getId());
		
		onLineStoreBiz.delete(onLineStore.getId());
		
	}
	
	@Test
	public void testCount(){
		int i=0;
		i=onLineStoreBiz.countByBrandId("f8ab959c35f211e190cd00163e00540b");
		
	}
	
	
	
	
}
*/